package com.itheima.studyssm.service.impl;

import com.itheima.studyssm.dao.UserDao;
import com.itheima.studyssm.pojo.User;
import com.itheima.studyssm.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ：sean
 * @date ：Created in 2020/9/15
 * @description ：
 * @version: 1.0
 */
@Service
@Slf4j
public class UserServiceImpl implements UserService {

	@Autowired
	private UserDao userDao;


	@Override
	public User findByUsername(String username) {
		log.info("[用户业务-查询用户] username:{}",username);
		return userDao.findByusername(username);
	}
}
